<if condition="$data['member_id'] gt 0">
<a href="{:U('Member/index')}" class="login">{$data.member_name}&nbsp; <span class="mlv"><img src="{$theme_path}/images/lv.png" />{$data.member_level_id}</span></a>
<a href="javascript:void(0)" onclick="logout_ajax()" class="reg">退出登录</a>
 <else/>
您好！请<a class="login" href="{:U('Register/login')}">登录</a><a class="reg" href="{:urlrotue('Register/index')}">免费注册</a>
</if>